using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;

namespace WebApiOrm
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var builder = WebApplication.CreateBuilder(args);
            builder.Services.AddControllers();

            OrmBuilder.Create(builder)
                .AddEFCore("EFCore")
                .AddFreeSql("FreeSql")
                .AddSqlSugar("SqlSugar")
                .AddChloe("Chloe");

            var app = builder.Build();
            app.UseRouting();
            app.MapControllers();
            app.Run();
        }
    }
}